ABC114 B - 754
https://atcoder.jp/contests/abc114/tasks/abc114_b
提出
code: python
s = input()
ans = float('inf')
for i in range(len(s) - 2):
res = abs(int(s
i
+ s
i+1
+ s
i+2
) - 753)
if (res < ans):
ans = res
print(ans)